<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/12/17
 * Time: 16:06
 * name:查询机构节点
 * url:/erpEnterpriseStructure/searchEnterpriseStructure
 */

$oes_id = $route->restfulParams['oes_id'];

$sql = "SELECT * FROM `art_oa_enterprise_structure` WHERE `is_delete` = 0 AND  `oes_oesid` = $oes_id";

$re=$db->mysqlDB->query($sql);

$rs = array("data" => $re);
//返回成功结果
$response->responseData(true, $rs);